package br.com.srv.componentes.panico.service;

import br.com.srv.componentes.comandos.service.ComandoService;
import br.com.srv.model.ConfiguracaoTO;

public class PanicoAlarmeServiceImpl implements PanicoAlarmeService {

	ComandoService comandoService;

	public ConfiguracaoTO buscarTelefonesPanicoAlarme(String veiculoId)
			throws Exception {

		ConfiguracaoTO configuracaoTO = new ConfiguracaoTO();
		
		if (veiculoId != null && !"".equals(veiculoId)) {
			configuracaoTO = comandoService.buscarTelefonesPanicoAlarme(veiculoId);
		}
		return configuracaoTO;
	}

	public boolean cadastrarConfiguracaoPanicoAlarme(String veiculoId, Integer usuarioResponsavelId, 
			ConfiguracaoTO configuracaoTO) throws Exception {
		
		return comandoService.salvarTelefones(
				veiculoId, usuarioResponsavelId, configuracaoTO);
	}

	public ComandoService getComandoService() {
		return comandoService;
	}

	public void setComandoService(ComandoService comandoService) {
		this.comandoService = comandoService;
	}
	
	

}
